package LeetCode.month02.day43;

public class No3516 {
    public int findClosest(int x, int y, int z) {
        int a1 = Math.abs(z-x);
        int a2 = Math.abs(z-y);
        if(a1==a2) return 0;
        return a1>a2?2:1;
    }
}
